#!/bin/bash

wd="`pwd`"
. $wd/env

set -ex

./bin/build-auxbuildroot cpfiles
./bin/build-auxbuildroot setperms
chroot $auxbuildroot_dir BIN/build-installcd tree
chroot $auxbuildroot_dir BIN/build-installcd setperms
./bin/build-installcd delstuff

cd $wd/$auxbuildroot_dir/$installcdinitrd_build_dir
tar --exclude=".svn" --exclude="*~" --exclude=".sw?$" -cvzf $wd/installer_update.tar.gz root/ nemonico/ etc/scripts/ etc/files/ usr/share/udhcpc/

set +ex
